import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_riverpod_test/app.dart';
import 'package:flutter_riverpod_test/manager/app_manager.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  //设置Android状态栏为透明
  if (Platform.isAndroid) {
    SystemUiOverlayStyle systemUiOverlayStyle = const SystemUiOverlayStyle(statusBarColor: Colors.transparent);
    SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
  }

  runApp(const ProviderScope(
    child: RiverpodTestApp(),
  ));
}
